package com.xinzhi.savingpot.userinfo.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface IAuthentication {
    /**
     *
     * @param realName //真实姓名
     * @param nationalldentifiCation //身份证号码
     * @param userId  //用户id
     * @return  //状态码
     *
     */
    int addCertification(@Param("realname") String realName,@Param("nationalIdentification") String nationalldentifiCation,
                         @Param("userId") int userId);

    /**
     * 检查是否已经实名认证
     * @param userId
     * @return
     */
    int examination(@Param("userId") int userId);

    /**
     * 检测是否重复实名认证
     * @param realName
     * @param nationalldentifiCation
     * @return
     */
    int repeat(@Param("realname")String realName,@Param("nationalIdentification") String nationalldentifiCation);
}
